package com.huarun.common.util;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 
 * @author hqy
 * @创建时间   2018-10-17 13:51
 * @Description 分页封装类
 * @param <T>
 */
public class PageBean<T> implements Serializable {
	private static final long serialVersionUID = -8652652596351231066L;
	/**
	 * 当前页
	 */
	public int currPage = 1;
	/**
	 * 总记录数
	 */
	public long totalCount;
	/**
	 * 总页数
	 */
	public long totalPageCount;
	/**
	 * 每页的记录条数
	 */
	public int pageSize;
	/**
	 * 显示的统计标题
	 */
	public String pageTitle = "";
	/**
	 * 当前页的记录
	 */
	public List<T> pages;
	/**
	 * 搜索条件
	 */
	public Map<String, Object> conditions;

	public int getCurrPage() {
		return currPage;
	}

	public void setCurrPage(int currPage) {
		this.currPage = currPage;
	}

	public long getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(long totalCount) {
		this.totalCount = totalCount;
	}

	public long getTotalPageCount() {
		return totalPageCount;
	}

	public void setTotalPageCount(long totalPageCount) {
		this.totalPageCount = totalPageCount;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public String getPageTitle() {
		return pageTitle;
	}

	public void setPageTitle(String pageTitle) {
		this.pageTitle = pageTitle;
	}

	public List<T> getPages() {
		return pages;
	}

	public void setPages(List<T> pages) {
		this.pages = pages;
	}

	public Map<String, Object> getConditions() {
		return conditions;
	}

	public void setConditions(Map<String, Object> conditions) {
		this.conditions = conditions;
	}

}
